package ch06.shizhang;

/**
 * @author 茜茜
 * @date 2024-11-23 12:17
 */
public class User {
    private String realname;
    private int age;
    private String email;

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public int getAge() {
        return age;
    }

    public User() {
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    @Override
    public String toString() {
        return "User{" +
                "realname='" + realname + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                '}';
    }

    public User(String realname, int age, String email) {
        this.realname = realname;
        this.age = age;
        this.email = email;
    }

    public void setEmail(String email) {
        this.email = email;
    }



}
